package com.xinyi.share.weixin.message;
/**
 * 消息类
 * @author wangchuan
 *
 */
public class Message {
	/**
	 * 文本
	 */
	public static final String text="text";
	/**
	 * 图片
	 */
	public static final String image="image";
	/**
	 * 语音
	 */
	public static final String voice="voice";
	/**
	 * 视频
	 */
	public static final String video="video";
	/**
	 * 音乐
	 */
	public static final String music="music";
	/**
	 * 经纬度
	 */
	public static final String location="location";
	/**
	 * 链接
	 */
	public static final String link = "link";
	/**
	 * 文章类型
	 */
	public static final String news = "news";
	/**
	 * 事件
	 */
	public static final String eventtype = "event";
	
	/**
	 * 消息类型
	 */
	private String msgType;
	/**
	 * 来自用户
	 */
	private String fromUserName;
	/**
	 * 目录用户
	 */
	private String toUserName;
	/**
	 * 创建时间
	 */
	private long createTime;
	
	public Message(){
	}
	
	public Message(String msgType, String fromUserName, String toUserName,long createTime) {
		super();
		this.msgType = msgType;
		this.fromUserName = fromUserName;
		this.toUserName = toUserName;
		this.createTime = createTime;
	}

	public String getMsgType() {
		return msgType;
	}
	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}
	public String getFromUserName() {
		return fromUserName;
	}
	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}
	public String getToUserName() {
		return toUserName;
	}
	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	
}
